<template>
<!--  总体页面结构组件-->
  <div class="employment-container" :style="'background: url('+bg+') no-repeat center;background-size:cover;background-attachment: fixed;'">
    <div class="animated animatd-container bounceInUp">
      <div class="recruit-top recruit-all">
        <slot name="title">{{ title }}</slot>
      </div>
      <div class="recruit-footer recruit-all">
        <slot name="firstSentence">{{firstSentence}}</slot>
        <br>
        <slot name="secondSentence">{{ secondSentence}}</slot>
      </div>
    </div>
  </div>
  <slot name="content"></slot>
</template>

<script setup>
// 标题，第一行句子，第二行句子，背景图片由父级传入
const props = defineProps(['title', 'firstSentence', 'secondSentence', 'bg']);

</script>

<style lang="scss" scoped>
.employment-container {
  width: 100%;
  height: 70vh;
  padding-left: 80px;
  padding-bottom: 80px;
  color: #ffffff;
  user-select: none;
  overflow: hidden;
  @include flex($col: flex-end);

  .animatd-container {
    @extend .animate-text-container;
    overflow: hidden;
    .recruit-top {
      font-size: 40px;
      font-weight: bold;
      letter-spacing: 10px;
    }

    .recruit-footer {
      font-size: 25px;
      font-weight: bold;
      letter-spacing: 10px;
    }
  }
}
</style>
